var User_profile = {
	init: function(){	
		User_profile.typeInit();
		$("#save").click(function(){
			var data = new Object();
			data.type = $("#userType").val();
			$("#form").find("input").each(function(){
				data[$(this).attr("id")] = $(this).val();
			});
			$ajax({
				url : "/user/reg",
				data: data,
				success: function(res){
					$alert("创建成功");
					// window.location.href = "userList.html";
				}
			});
		});
	},